package com.yqb.study.modular.controller.view;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 登录控制器
 */
@Controller
@RequestMapping(value = "/view")
public class LoginViewController {
	
	private String PREFIX = "/modular";

    /**
     * 跳转到登录页面
     */
    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
    	return PREFIX + "/login.html";
    }
//
//
//    /**
//     * 退出登录
//     */
//    @RequestMapping(value = "/logout", method = RequestMethod.GET)
//    public String logOut() {
//        LogManager.me().executeLog(LogTaskFactory.exitLog(ShiroKit.getUser().getId(), getIp()));
//        ShiroKit.getSubject().logout();
//        return REDIRECT + "/login";
//    }
}
